/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package mp.weixin.WXpublic.kefu;

import java.util.Date;

/**
 *
 * @author aolin
 */
public class KefuDialog {

    private String kefuAccount;
    private String openid;
    private int opercode;
    private Date time;
    private String text;

    public String getKefuAccount() {
        return kefuAccount;
    }

    public void setKefuAccount(String kefuAccount) {
        this.kefuAccount = kefuAccount;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public int getOpercode() {
        return opercode;
    }

    public void setOpercode(int opercode) {
        this.opercode = opercode;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public enum opercode {
        CODE1000(1000, "创建未接入会话"),
        CODE1001(1001, "接入会话"),
        CODE1002(1002, "主动发起会话"),
        CODE1003(1003, "转接会话"),
        CODE1004(1004, "关闭会话"),
        CODE1005(1005, "抢接会话"),
        CODE2001(2001, "公众号收到消息"),
        CODE2002(2002, "客服发送消息"),
        CODE2003(2003, "客服收到消息 "),;

        private final int id;
        private final String desc;

        opercode(int id, String desc) {
            this.id = id;
            this.desc = desc;
        }

        public int getId() {
            return id;
        }

        public String getDesc() {
            return desc;
        }
    }
}
